<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <style>
        .aui-bar-nav {
            background: none;
        }

        body {
            background: #F2F2F2;
        }

        .aui-bar-nav .aui-iconfont {
            font-weight: bold;
        }

        #header {
            padding-top: 10%;
            background: #fff;
            color: #000;
        }

        #header a span {
            color: #000;
        }

        .top {
            width: 340px;
            background: rgba(255, 255, 255, 1);
            border-radius: 5px;
            margin: 0 auto;
            padding: 0 15px;
            margin-top: 10px;
            padding-top: 15px;
            padding-bottom: 5px;
        }

        .top_a {
            display: flex;
            font-family: PingFang SC;
            font-weight: 500;
            color: #333333;
            padding: 0 5px;
        }

        .top_b {
            display: flex;
            font-family: PingFang SC;
            font-weight: 500;
            color: #666666;
            padding: 0 5px;
            margin-top: 12px;
        }
    </style>
</head>

<body>
    <div id="app">
        <header id="header" class="aui-bar aui-bar-nav">
            <a class="aui-pull-left aui-btn" tapmode onclick="comeBack()">
                <span class="aui-iconfont aui-icon-left"></span>
            </a>
            <div class="aui-title">公告详情</div>
        </header>

        <div class="top" v-html="lists.site_notice">
            {{lists.site_notice}}
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../script/md5.min.js"></script>
<script type="text/javascript" src="../script/vue.js"></script>
<script type="text/javascript">
    apiready = function() {
        console.log(JSON.stringify(api.pageParam.id));
        var id = JSON.stringify(api.pageParam.id);
        var h = api.winHeight;
        $api.css($api.dom('body'), 'height:' + h + 'px;');
        vm = new Vue({
            el: "#app",
            data: {
                lists: '',
                lis: "<span style='color:red'>545645</span>"
            },

            methods: {}
        })
        list();
        _downRefresh(function() {
            list();
            api.refreshHeaderLoadDone();
        });

        function list() {
            let that = this;
            _ajax("index/noticeInfo", {
                id: api.pageParam.id
            }, function(res, err) {
                console.log(JSON.stringify(res))
                if (res) {
                    // htmlEscape(res.data);
                    var data = res.data;
                    console.log(JSON.stringify(data))
                    vm.lists = res.data;
                } else {
                    _msg("网络错误");
                }
            })
        }
    };
    // };
</script>

</html>
